package beans;

import java.util.Random;

public class SMS {
    private String mobile;
    private int code;
    private int min;

    public SMS() {
        code = Math.abs(new Random().nextInt())%900000+100000;
    }

    //getter
    public String getMobile() {
        return mobile;
    }

    public int getCode() {
        return code;
    }

    public int getMin() {
        return min;
    }
    //setter

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMin(int min) {
        this.min = min;
    }
}
